////////////////////////////////////////////////////////////////////////////////
/// @file     div.c
/// @author   AE TEAM
/// @brief    THIS FILE PROVIDES ALL THE SYSTEM FUNCTIONS.
////////////////////////////////////////////////////////////////////////////////
/// @attention
///
/// THE EXISTING FIRMWARE IS ONLY FOR REFERENCE, WHICH IS DESIGNED TO PROVIDE
/// CUSTOMERS WITH CODING INFORMATION ABOUT THEIR PRODUCTS SO THEY CAN SAVE
/// TIME. THEREFORE, MINDMOTION SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT OR
/// CONSEQUENTIAL DAMAGES ABOUT ANY CLAIMS ARISING OUT OF THE CONTENT OF SUCH
/// HARDWARE AND/OR THE USE OF THE CODING INFORMATION CONTAINED HEREIN IN
/// CONNECTION WITH PRODUCTS MADE BY CUSTOMERS.
///
/// <H2><CENTER>&COPY; COPYRIGHT MINDMOTION </CENTER></H2>
////////////////////////////////////////////////////////////////////////////////

// Define to prevent recursive inclusion
#define _DIV_C_

// Files includes
#include "div.h"


////////////////////////////////////////////////////////////////////////////////
/// @addtogroup MM32_Example_Layer
/// @{

////////////////////////////////////////////////////////////////////////////////
/// @addtogroup DIV
/// @{

////////////////////////////////////////////////////////////////////////////////
/// @addtogroup DIV_Exported_Constants
/// @{

/////////////////////////////////////////////////////////////////////////////////
/// @brief   configure div
/// @param   None
/// @retval  None
/////////////////////////////////////////////////////////////////////////////////
void DIV_Init(void)
{
    RCC->AHBENR &= ~(RCC_AHBENR_HWDIV);
    RCC->AHBENR |= RCC_AHBENR_HWDIV;
    DIV->CR = (DIV_CR_USIGN | DIV_CR_OVFE );
}
/// @}


/// @}

/// @}
